//
//  Common.swift
//  TGWeiBo
//
//  Created by 涛哥无敌威武 on 16/4/17.
//  Copyright © 2016年 taoge. All rights reserved.
//

import UIKit

//屏幕的宽高
let SCREENW = UIScreen.mainScreen().bounds.width
let SCREENH = UIScreen.mainScreen().bounds.height


//App主题颜色
let ThemeColor = UIColor.orangeColor()


//RGB颜色
func RGB(red red :CGFloat, green: CGFloat, blue: CGFloat) -> UIColor{

return UIColor(red: red / 255, green: green / 255, blue: blue / 255, alpha: 1)

}

//随机颜色
func RandomColor() ->UIColor{

    let red = random() % 256
    let green = random() % 256
    let blue = random() % 256

return RGB(red: CGFloat(red), green: CGFloat(green), blue: CGFloat(blue))

}